package com.Location;


import android.content.Context;
import android.location.Criteria;
import android.location.LocationListener;
import android.location.LocationManager;


public class PictureLocation {

    // /UPDATE GEO LOCATION
    public void updateGeoUserLocation(Context context) {

        // Async_GeoUpdate aup = new Async_GeoUpdate(context);
        // aup.setContext(context);
        // aup.execute(this);
        LocationListener locationListener = new UserLocationListener(context);
        LocationManager lm = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
        Criteria criteria = new Criteria();
        String bestProvider = lm.getBestProvider(criteria, false);
        lm.requestLocationUpdates(bestProvider, 60000, 10, locationListener);

    }
}
